What is a Function Definition?
The function definition is where you provide the actual body of the function, specifying what the function does.
Syntax
return_type function_name(parameter1_type parameter1, ...) {
// Function body
// Return value (if any)
Example
#include < stdio.h>
void main
int addNumbers(int a, int b)
{
return a + b;
}
int main() {
printf("Sum: %d\n", addNumbers(5, 3));
return 0;
}